import { AFunc } from '../types';
import { And } from './and';
import { Average } from './average';
import { CountIf } from './countif';
import { Ifc } from './ifc';
import { Max } from './max';
import { Min } from './min';
import { Or } from './or';
import { Sum } from './sum';
import { SUMIF } from './sumif';

export const DefaultFuncs: {name: string, value: {new (...args: any[]): AFunc}}[] = [
  {
    name: 'AND',
    value: And
  },
  {
    name: 'AVERAGE',
    value: Average
  },
  {
    name: 'COUNTIF',
    value: CountIf
  },
  {
    name: 'IF',
    value: Ifc
  },
  {
    name: 'MAX',
    value: Max
  },
  {
    name: 'MIN',
    value: Min
  },
  {
    name: 'OR',
    value: Or
  },
  {
    name: 'SUM',
    value: Sum
  },
  {
    name: 'SUMIF',
    value: SUMIF
  }
]